package com.he.DesignPatterns.template.demo1;

import com.he.entity.Book;
import com.he.entity.NewBook;

import java.util.List;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/8/28 16:15
 */
public interface BookAbstract {

    default void process(){
        List<Book> bookList = queryData();
        List<NewBook> newBookList = adjustData(bookList);
        insertData(newBookList);
    }

    public  List<Book> queryData();

    public  List<NewBook> adjustData(List<Book> bookList);

    public  void insertData(List<NewBook> newBookList);
}
